import java.util.Random;
import java.util.Scanner;

public class qiang_hong_bao {
    public static void main(String[] args) {
        //抢红包
        int[] arr = {9, 666, 188, 520, 99999};
        stare(arr);
    }

    public static void stare(int[] arr) {
        Scanner peo = new Scanner(System.in);
        Random se = new Random();
        for (int i = 0; i < 5; i++) {
            System.out.println("请输入任意内容进行抽奖:");
            peo.next();
            while (true) {
                int a = se.nextInt(5);
                if (arr[a] != 0) {
                    System.out.println("恭喜你,抽中了" + arr[a] + "元红包!");
                    arr[a] = 0;
                    break;
                }
            }
        }
    }
}
